compare_to

pure function compare_to(other: text): integer

Compares this text to another text lexicographically, based on the Unicode value of each character in each text object.

Return

0 if this text and other are equal, a negative integer if lexicographically less than other, and a positive integer if lexicographically greater than other.

Since

0.9.0

Parameters

other

the text to compare against this text